.class public Lcom/estrongs/android/pop/app/DownloaderActivity;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "DownloaderActivity.java"


# static fields
.field private static f:Ljava/lang/String;


# instance fields
.field private d:Ljava/lang/String;

.field private e:Lcom/estrongs/android/statistics/b;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/DownloaderActivity;->d:Ljava/lang/String;

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/pop/app/DownloaderActivity;->e:Lcom/estrongs/android/statistics/b;

    return-void
.end method

.method static synthetic A()Ljava/lang/String;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/app/DownloaderActivity;->f:Ljava/lang/String;

    return-object v0
.end method

.method private static a(Landroid/app/Activity;Les/j70;Z)Lcom/estrongs/android/ui/dialog/a1;
    .locals 9

    const v0, 0x7f110321

    .line 28
    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v0, 0x1

    new-array v0, v0, [Ljava/lang/Object;

    .line 29
    iget-object v1, p1, Les/j70;->F:Lcom/estrongs/fs/impl/pcs/a;

    iget-object v1, v1, Lcom/estrongs/fs/impl/pcs/a;->q:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v8, 0x0

    aput-object v1, v0, v8

    const v1, 0x7f11031d

    invoke-virtual {p0, v1, v0}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    .line 30
    new-instance v0, Lcom/estrongs/android/pop/app/DownloaderActivity$g;

    move-object v1, v0

    move-object v2, p0

    move-object v4, p1

    move-object v6, p1

    move-object v7, p0

    invoke-direct/range {v1 .. v7}, Lcom/estrongs/android/pop/app/DownloaderActivity$g;-><init>(Landroid/app/Activity;Ljava/lang/String;Les/s80;Ljava/lang/String;Les/j70;Landroid/app/Activity;)V

    .line 31
    invoke-virtual {v0, v8}, Lcom/estrongs/android/ui/dialog/a1;->c(Z)Lcom/estrongs/android/ui/dialog/a1;

    const v1, 0x7f110322

    .line 32
    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/a1;->a(Ljava/lang/String;)V

    .line 33
    new-instance v1, Lcom/estrongs/android/pop/app/DownloaderActivity$h;

    invoke-direct {v1, p1, p2, p0}, Lcom/estrongs/android/pop/app/DownloaderActivity$h;-><init>(Les/j70;ZLandroid/app/Activity;)V

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/a1;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 34
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/a1;->c()V

    return-object v0
.end method

.method public static a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/q;
    .locals 1

    const/4 v0, 0x0

    .line 35
    invoke-static {p0, p1, p2, v0}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object p0

    return-object p0
.end method

.method public static a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Les/z80;ZLjava/lang/String;ZLjava/lang/String;)Lcom/estrongs/android/ui/dialog/q;
    .locals 9

    const/4 v7, 0x0

    const/4 v8, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move v4, p4

    move-object v5, p5

    move v6, p6

    .line 38
    invoke-static/range {v0 .. v8}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Les/z80;ZLjava/lang/String;ZLjava/lang/String;Z)Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    return-object v0
.end method

.method public static a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Les/z80;ZLjava/lang/String;ZLjava/lang/String;Z)Lcom/estrongs/android/ui/dialog/q;
    .locals 14

    move-object v0, p0

    move-object/from16 v1, p3

    .line 39
    new-instance v2, Ljava/io/File;

    move-object v3, p1

    invoke-direct {v2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 40
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_0

    .line 41
    invoke-virtual {v2}, Ljava/io/File;->mkdirs()Z

    :cond_0
    const v3, 0x7f110041

    .line 42
    invoke-virtual {p0, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    const v4, 0x7f11031d

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    .line 43
    invoke-static/range {p2 .. p2}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x0

    aput-object v6, v5, v7

    invoke-virtual {p0, v4, v5}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    .line 44
    new-instance v5, Les/d70;

    invoke-static {p0}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v9

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v11

    move-object v8, v5

    move-object/from16 v10, p2

    move/from16 v12, p4

    move-object/from16 v13, p5

    invoke-direct/range {v8 .. v13}, Les/d70;-><init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V

    .line 45
    invoke-static/range {p7 .. p7}, Lcom/estrongs/android/util/o0;->b(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    const-string v2, "title"

    move-object/from16 v6, p7

    .line 46
    invoke-virtual {v5, v2, v6}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    :cond_1
    move/from16 v2, p6

    .line 47
    iput-boolean v2, v5, Les/d70;->O:Z

    move/from16 v2, p8

    .line 48
    iput-boolean v2, v5, Les/d70;->P:Z

    const-string v2, " "

    .line 49
    invoke-virtual {v3, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static/range {p2 .. p2}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v5, v2}, Les/s80;->a(Ljava/lang/String;)V

    if-eqz v1, :cond_2

    .line 50
    invoke-virtual {v5, v1}, Les/s80;->a(Les/z80;)V

    .line 51
    :cond_2
    new-instance v1, Lcom/estrongs/android/pop/app/DownloaderActivity$i;

    move-object/from16 p3, v1

    move-object/from16 p4, p0

    move-object/from16 p5, v3

    move-object/from16 p6, v5

    move-object/from16 p7, v4

    move-object/from16 p8, p2

    invoke-direct/range {p3 .. p8}, Lcom/estrongs/android/pop/app/DownloaderActivity$i;-><init>(Landroid/app/Activity;Ljava/lang/String;Les/s80;Ljava/lang/String;Ljava/lang/String;)V

    .line 52
    new-instance v0, Lcom/estrongs/android/pop/app/DownloaderActivity$j;

    invoke-direct {v0}, Lcom/estrongs/android/pop/app/DownloaderActivity$j;-><init>()V

    invoke-virtual {v5, v0}, Les/s80;->a(Les/y80;)V

    .line 53
    invoke-virtual {v1, v7}, Lcom/estrongs/android/ui/dialog/a1;->c(Z)Lcom/estrongs/android/ui/dialog/a1;

    .line 54
    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/a1;->show()V

    .line 55
    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/a1;->c()V

    .line 56
    invoke-virtual {v5}, Les/s80;->d()V

    return-object v1
.end method

.method public static a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/q;
    .locals 9

    .line 36
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->z()Ljava/lang/String;

    move-result-object v2

    const/4 v4, 0x0

    const/4 v5, 0x1

    const/4 v7, 0x1

    move-object v1, p0

    move-object v3, p1

    move-object v6, p2

    move-object v8, p3

    .line 37
    invoke-static/range {v1 .. v8}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Les/z80;ZLjava/lang/String;ZLjava/lang/String;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object p0

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/DownloaderActivity;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/DownloaderActivity;->d:Ljava/lang/String;

    return-object p0
.end method

.method public static a(Landroid/app/Activity;Lcom/estrongs/android/ui/pcs/e$c;Landroid/content/DialogInterface$OnCancelListener;)V
    .locals 7

    .line 57
    new-instance v0, Lcom/estrongs/android/pop/app/DownloaderActivity$k;

    invoke-direct {v0, p0, p1, p2}, Lcom/estrongs/android/pop/app/DownloaderActivity$k;-><init>(Landroid/app/Activity;Lcom/estrongs/android/ui/pcs/e$c;Landroid/content/DialogInterface$OnCancelListener;)V

    .line 58
    new-instance v1, Lcom/estrongs/android/pop/app/DownloaderActivity$a;

    invoke-direct {v1, p0, p1, p2}, Lcom/estrongs/android/pop/app/DownloaderActivity$a;-><init>(Landroid/app/Activity;Lcom/estrongs/android/ui/pcs/e$c;Landroid/content/DialogInterface$OnCancelListener;)V

    .line 59
    new-instance v2, Lcom/estrongs/android/pop/app/DownloaderActivity$b;

    invoke-direct {v2, p0, p1, p2}, Lcom/estrongs/android/pop/app/DownloaderActivity$b;-><init>(Landroid/app/Activity;Lcom/estrongs/android/ui/pcs/e$c;Landroid/content/DialogInterface$OnCancelListener;)V

    .line 60
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    const-wide/16 v3, 0x0

    invoke-virtual {p1, v3, v4}, Lcom/estrongs/android/pop/l;->a(J)Ljava/lang/String;

    move-result-object p1

    const v3, 0x7f110051

    const v4, 0x7f11094b

    const v5, 0x7f1107bf

    const v6, 0x7f110321

    if-eqz p1, :cond_0

    .line 61
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v6}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 62
    invoke-virtual {p1, v5}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 63
    invoke-virtual {p1, v4, v1}, Lcom/estrongs/android/ui/dialog/q$n;->c(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const p0, 0x7f110ab9

    .line 64
    invoke-virtual {p1, p0, v2}, Lcom/estrongs/android/ui/dialog/q$n;->d(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 65
    invoke-virtual {p1, v3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->e(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 66
    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/content/DialogInterface$OnCancelListener;)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    goto :goto_0

    .line 67
    :cond_0
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v6}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 68
    invoke-virtual {p1, v5}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 69
    invoke-virtual {p1, v4, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 70
    invoke-virtual {p1, v3, v0}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 71
    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/content/DialogInterface$OnCancelListener;)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    :goto_0
    return-void
.end method

.method public static a(Landroid/app/Activity;Lcom/estrongs/fs/g;Z)V
    .locals 4

    .line 18
    instance-of v0, p1, Lcom/estrongs/fs/impl/pcs/a;

    if-eqz v0, :cond_0

    .line 19
    move-object v1, p1

    check-cast v1, Lcom/estrongs/fs/impl/pcs/a;

    iget-object v1, v1, Lcom/estrongs/fs/impl/pcs/a;->q:Ljava/lang/String;

    goto :goto_0

    :cond_0
    const-string v1, ""

    .line 20
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/l;->a0()Ljava/lang/String;

    move-result-object v2

    .line 21
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_1

    const p0, 0x7f1107be

    .line 22
    invoke-static {p0}, Lcom/estrongs/android/ui/view/d;->a(I)V

    return-void

    :cond_1
    if-eqz v0, :cond_2

    .line 23
    new-instance v0, Les/j70;

    invoke-static {p0}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v3

    check-cast p1, Lcom/estrongs/fs/impl/pcs/a;

    invoke-direct {v0, v3, v2, p1}, Les/j70;-><init>(Lcom/estrongs/fs/f;Ljava/lang/String;Lcom/estrongs/fs/impl/pcs/a;)V

    goto :goto_1

    .line 24
    :cond_2
    new-instance v0, Les/j70;

    invoke-static {p0}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object p1

    invoke-direct {v0, p1, v2, v1}, Les/j70;-><init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;)V

    .line 25
    :goto_1
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f110041

    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Les/s80;->a(Ljava/lang/String;)V

    .line 26
    invoke-static {p0, v0, p2}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/app/Activity;Les/j70;Z)Lcom/estrongs/android/ui/dialog/a1;

    move-result-object p0

    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/a1;->show()V

    .line 27
    invoke-virtual {v0}, Les/s80;->d()V

    return-void
.end method

.method public static a(Landroid/app/Activity;Ljava/lang/String;Z)V
    .locals 3

    .line 11
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->a0()Ljava/lang/String;

    move-result-object v0

    .line 12
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    const p0, 0x7f1107be

    .line 13
    invoke-static {p0}, Lcom/estrongs/android/ui/view/d;->a(I)V

    return-void

    .line 14
    :cond_0
    new-instance v1, Les/j70;

    invoke-static {p0}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v2

    invoke-direct {v1, v2, v0, p1}, Les/j70;-><init>(Lcom/estrongs/fs/f;Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    invoke-static {p0, v1, p2}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/app/Activity;Les/j70;Z)Lcom/estrongs/android/ui/dialog/a1;

    move-result-object p0

    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/a1;->show()V

    .line 16
    new-instance p0, Lcom/estrongs/android/pop/app/DownloaderActivity$f;

    invoke-direct {p0}, Lcom/estrongs/android/pop/app/DownloaderActivity$f;-><init>()V

    invoke-virtual {v1, p0}, Les/s80;->a(Les/y80;)V

    .line 17
    invoke-virtual {v1}, Les/s80;->d()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/DownloaderActivity;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/pop/app/DownloaderActivity;->d:Ljava/lang/String;

    invoke-static {p0, p1, p2}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    .line 10
    new-instance p2, Lcom/estrongs/android/pop/app/DownloaderActivity$e;

    invoke-direct {p2, p0}, Lcom/estrongs/android/pop/app/DownloaderActivity$e;-><init>(Lcom/estrongs/android/pop/app/DownloaderActivity;)V

    invoke-virtual {p1, p2}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    return-void
.end method

.method private static a(Landroid/net/Uri;)Z
    .locals 2
    .param p0    # Landroid/net/Uri;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 3
    invoke-virtual {p0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object p0

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return v0

    :cond_0
    const-string v1, "ftp"

    .line 4
    invoke-virtual {p0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "ftps"

    .line 5
    invoke-virtual {p0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "sftp"

    .line 6
    invoke-virtual {p0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "http"

    .line 7
    invoke-virtual {p0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "https"

    .line 8
    invoke-virtual {p0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_2

    :cond_1
    const/4 v0, 0x1

    :cond_2
    return v0
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/pcs/f;->k()Lcom/estrongs/android/ui/pcs/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/ui/pcs/f;->b()Lcom/estrongs/android/ui/pcs/e;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0, p1, p3, p2}, Lcom/estrongs/android/ui/pcs/e;->a(ILandroid/content/Intent;I)V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/DownloaderActivity;->e:Lcom/estrongs/android/statistics/b;

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const/4 v0, 0x0

    const-string v1, "islocalopen"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p1

    if-nez p1, :cond_0

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/DownloaderActivity;->e:Lcom/estrongs/android/statistics/b;

    const-string v1, "act3"

    const-string v2, "download_manager"

    invoke-virtual {p1, v1, v2}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p1

    if-nez p1, :cond_1

    const p1, 0x7f11031f

    .line 6
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->g(I)V

    .line 7
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 8
    :cond_1
    invoke-static {p1}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Landroid/net/Uri;)Z

    move-result v1

    if-nez v1, :cond_2

    const p1, 0x7f110b25

    .line 9
    invoke-static {p0, p1, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 10
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 11
    :cond_2
    invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/DownloaderActivity;->d:Ljava/lang/String;

    .line 12
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getType()Ljava/lang/String;

    move-result-object p1

    sput-object p1, Lcom/estrongs/android/pop/app/DownloaderActivity;->f:Ljava/lang/String;

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->b()Z

    move-result p1

    if-nez p1, :cond_3

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/pop/app/DownloaderActivity;->d:Ljava/lang/String;

    sget-object v0, Lcom/estrongs/android/pop/app/DownloaderActivity;->f:Ljava/lang/String;

    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/pop/app/DownloaderActivity;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 15
    :cond_3
    new-instance p1, Lcom/estrongs/android/pop/app/DownloaderActivity$c;

    invoke-direct {p1, p0}, Lcom/estrongs/android/pop/app/DownloaderActivity$c;-><init>(Lcom/estrongs/android/pop/app/DownloaderActivity;)V

    .line 16
    new-instance v1, Lcom/estrongs/android/ui/dialog/q;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const v2, 0x7f110041

    .line 17
    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/dialog/q;->setTitle(I)V

    .line 18
    invoke-virtual {v1, p1}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 19
    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/q;->setSelectable(Z)V

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/String;

    const v3, 0x7f110320

    .line 20
    invoke-virtual {p0, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v0

    const/4 v0, 0x1

    const v3, 0x7f110321

    invoke-virtual {p0, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v0

    const/4 v0, -0x1

    new-instance v3, Lcom/estrongs/android/pop/app/DownloaderActivity$d;

    invoke-direct {v3, p0, p1}, Lcom/estrongs/android/pop/app/DownloaderActivity$d;-><init>(Lcom/estrongs/android/pop/app/DownloaderActivity;Landroid/content/DialogInterface$OnCancelListener;)V

    invoke-virtual {v1, v2, v0, v3}, Lcom/estrongs/android/ui/dialog/q;->setItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)V

    .line 21
    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method
